//
//  CYUIVC_base.m
//  KHMall
//
//  Created by 198 on 16/5/18.
//  Copyright © 2016年 198. All rights reserved.
//

#import "CYUIVC_base.h"

@interface CYUIVC_base ()

@end

@implementation CYUIVC_base

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
    self.edgesForExtendedLayout = UIRectEdgeNone;
    self.automaticallyAdjustsScrollViewInsets = NO;
    if (@available(iOS 11.0, *)){
        [[UIScrollView appearance] setContentInsetAdjustmentBehavior:UIScrollViewContentInsetAdjustmentNever];
    }
    [self addSubviews];
    [self addBarButtons];
    if ([self isViewLoaded]) {
        [self writeView];
    }

}

- (void)action_dismiss{
//    [self.navigationController popViewControllerAnimated:YES];
}

-(void)addSubviews{
    
}
-(void)addBarButtons{
    
}
-(void)writeView{
    
}
- (void)setObject:(id)object
{
    _object = object;
    if (object) {
        [self writeView];
    }
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
